<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class SubmitPersonModel</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> SubmitPersonModel</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class provides the code for the Member page</p>
	<ul class="tags">
				<li><span class="field">version:</span> Release: @package_version@</li>
				<li><span class="field">copyright:</span> 2009 A Memory Tree</li>
				<li><span class="field">license:</span> A</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_admin---insert---models---SubmitPersonModel.php.html">/admin/insert/models/SubmitPersonModel.php</a> (line <span class="field">17</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">SubmitPersonModel</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type"><a href="../default/SubmitPersonDB.html">SubmitPersonDB</a></span>&nbsp;<span class="var-name">$db</span>, <span class="var-type"><a href="../default/SubmitPersonView.html">SubmitPersonView</a></span>&nbsp;<span class="var-name">$view</span>, <span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>&nbsp;<span class="var-name">$email</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">int</span>
										<a href="#addPerson" title="details" class="method-name">addPerson</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$surname</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$firstNames</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$formerName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$neeName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$alsoKnownAs</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$deathDate</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$birthDate</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$age</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$ageMeasure</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$cityId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$formerCityId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$regionId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$countryId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$charityName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$otherInfo</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#getCharityId" title="details" class="method-name">getCharityId</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$charityName</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#notifyCheck" title="details" class="method-name">notifyCheck</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#sendEmail" title="details" class="method-name">sendEmail</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$personId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$firstNames</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$surname</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#sendNotification" title="details" class="method-name">sendNotification</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$personId</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>, <span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>&nbsp;<span class="var-name">$email</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">44</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create a new instance of this class</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">SubmitPersonModel</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type"><a href="../default/SubmitPersonDB.html">SubmitPersonDB</a></span>&nbsp;<span class="var-name">$db</span>, <span class="var-type"><a href="../default/SubmitPersonView.html">SubmitPersonView</a></span>&nbsp;<span class="var-name">$view</span>, <span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>&nbsp;<span class="var-name">$email</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../default/SubmitPersonDB.html">SubmitPersonDB</a></span>
				<span class="var-name">$db</span>			</li>
					<li>
				<span class="var-type"><a href="../default/SubmitPersonView.html">SubmitPersonView</a></span>
				<span class="var-name">$view</span>			</li>
					<li>
				<span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>
				<span class="var-name">$email</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddPerson" id="addPerson"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addPerson</span> (line <span class="line-number">130</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add a person</p>
	<ul class="tags">
				<li><span class="field">return:</span> The id number of the newly added person</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			addPerson
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$surname</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$firstNames</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$formerName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$neeName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$alsoKnownAs</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$deathDate</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$birthDate</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$age</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$ageMeasure</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$cityId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$formerCityId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$regionId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$countryId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$charityName</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$otherInfo</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$surname</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$firstNames</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$formerName</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$neeName</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$alsoKnownAs</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$deathDate</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$birthDate</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$age</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$ageMeasure</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$cityId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$formerCityId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$regionId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$countryId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$charityName</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$funeralHomeId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$otherInfo</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCharityId" id="getCharityId"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getCharityId</span> (line <span class="line-number">58</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the id number of a charity.</p>
<p class="description"><p>If the charity doesn't exist, add a new charity and return that id number instead.</p></p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getCharityId
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$charityName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$charityName</span>			</li>
				</ul>
		
			
	</div>
<a name="methodnotifyCheck" id="notifyCheck"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">notifyCheck</span> (line <span class="line-number">73</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check to see if a notification email should be sent  to the funeral home.</p>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			notifyCheck
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$funeralHomeId</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsendEmail" id="sendEmail"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">sendEmail</span> (line <span class="line-number">145</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Send an email to the funeral home</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			sendEmail
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$personId</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$firstNames</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$surname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$funeralHomeId</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$personId</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$firstNames</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$surname</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsendNotification" id="sendNotification"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">sendNotification</span> (line <span class="line-number">92</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Send a notification to the funeral home about the added person</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			sendNotification
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$funeralHomeId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$personId</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>, <span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>&nbsp;<span class="var-name">$email</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../default/EmailModel.html">EmailModel</a></span>
				<span class="var-name">$email</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$funeralHomeId</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$personId</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fullname</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Thu, 18 Jun 2009 14:08:00 +1200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a>
	</p>
	</div></body>
</html>